home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / isp.xml < prev    next >
Text File  |  2002-08-30  |  2KB  |  68 lines

  1. <search function="isp">
  2.   <name>Reverse Phone Lookup</name>
  3.   <description>
  4.     Find a person and address in Canada by telephone number.<br/>
  5.     <div class="helpboxDescLabels">Example:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>isp 902-555-1212</td></tr>
  8.     </table>
  9.   </description>
  10.   <category>People and Places</category>
  11.   <link>http://www.infospace.com/canada/reverse_ca.htm</link>
  12.   <contributor>Sarah Sweeney</contributor>
  13.   <email>sarah@designshift.com</email>
  14.   <form name="reversephoneform"
  15.     action="http://ypng.infospace.com/canada/ypv3ca/redir.htm"
  16.     method="get">
  17.     <input type="hidden" name="searchtype" value="all" />
  18.     <input type="hidden" name="fromform" value="revphone" />
  19.     <input type="hidden" name="ClickTRK" value="REVRP3" />
  20.     <input type="hidden" name="QP" />
  21.     <input type="hidden" name="wqp" />
  22.   </form>
  23.   <script><![CDATA[
  24.     function isp(q)
  25.     {
  26.       if( nullArgs("isp", q) )
  27.         return false;
  28.  
  29.       if (q == "")
  30.       {  
  31.         openSearchWindow("http://www.infospace.com/canada.widept/reverse_ca.htm");
  32.       }
  33.       else
  34.       {
  35.         // detect strings that look like phone numbers
  36.         res = phone_regex.exec(q);
  37.         if (res)
  38.         {
  39.           if (res[1])
  40.           {
  41.             ac=res[1].replace( / /, "", "g");
  42.             pn=res[2].replace( / /, "", "g");
  43.           }
  44.           else
  45.           {
  46.             ac=res[3].replace( / /, "", "g");
  47.             pn=res[4].replace( / /, "", "g");;
  48.           }
  49.           document.reversephoneform.QP.value=ac + "-" + pn;
  50.           //1=home, blank=work
  51.           document.reversephoneform.wqp.value="1";
  52.           submitForm(reversephoneform);
  53.         }
  54.         else
  55.         {
  56.           return false;
  57.         }
  58.       }
  59.     }
  60.     ]]></script>
  61.  
  62.   <copyright>
  63.     Copyright (c) 2002 David Bau
  64.     Distributed under the terms of the
  65.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  66.   </copyright>
  67. </search>
  68.